#!/bin/bash
case $# in
    1) 
        img="$1";;
    0)
        img="ara-apd:test";;
    *)
        echo "Usage: <command> [<image name>:<image tag>]"
        exit -1
esac
echo "Run image ${img}..."

hostRoot="${HOME}"
clientUser="root"
clientHome="/"

echo run docker image ${img}

docker run \
    -u ${clientUser} \
    -w ${clientHome} \
    -it \
    ${img} \
    "/bin/sh"
